.factory-calculate-config {
  .calculate-list-wrap {
    width: 650px;
    height: 100%;
  }
  .factory-list,
  .calculate-list {
    float: left;
  }
  .calculate-list {
    width: 300px;
    height: 100%;
    margin-left: 20px;
    background-color: #f0f4f7;
    border-top: 1px solid #ebeef5;
  }
  .list-title {
    font-size: 15px;
    height: 47px;
    line-height: 47px;
    font-weight: bold;
    padding: 0 10px 0 20px;
    color: inherit;
    background-color: #6a86cc;
    color: #fff;
    border-color: #fff;
    svg {
      width: 23px;
      height: 23px;
      margin: -5px 5px 0 0;
      vertical-align: middle;
    }
  }
  .el-input {
    padding: 0 20px;
    margin: 15px 0 10px 0;
  }
  .el-input__inner {
    height: 35px;
    line-height: 35px;
    background-color: inherit;
    border-color: #455fbc;
  }
  .el-input__icon {
    line-height: 1 !important;
  }
  .el-input-group__append {
    padding: 0 15px;
    border-color: #455fbc;
    background-color: #455fbc;
    svg {
      width: 20px;
      height: 20px;
      color: #fff;
    }
  }
  .el-input__suffix {
    top: 6px;
    right: 25px;
  }
  .el-input__suffix-inner {
    font-size: 18px;
    color: #4d82e9;
  }
  .calculate-func-list {
    height: calc(100% - 110px);
    color: #455fbc;
    overflow-y: auto;
    li {
      padding: 0 60px 0 20px;
      line-height: 40px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer;
      position: relative;
      &:hover {
        background-color: #c0d2f6;
        &:not(.tag-disabled):before {
          width: 10px;
          height: 10px;
          content: '';
          border: 2px solid rgba(#000, 0.3);
          background-color: #a8fff9;
          border-radius: 50%;
          position: absolute;
          top: 15px;
          left: 5px;
        }
        &.tag-disabled .icon-disabled {
          display: block;
        }
      }
      i {
        position: absolute;
        top: 15px;
        right: 15px;
      }
      .func-name {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .list-handler {
        position: absolute;
        top: 0;
        right: 10px;
        .plus {
          display: inline-block;
          width: 18px;
          height: 18px;
          margin-top: -5px;
          border: 1px solid #5f8eec;
          color: #5f8eec;
          line-height: 15px;
          text-align: center;
          border-radius: 50%;
          vertical-align: middle;
          i {
            font-size: 12px;
            position: static;
          }
        }
        svg {
          width: 18px;
          height: 18px;
          color: #455fbc;
          margin: -5px 5px 0 10px;
          vertical-align: middle;
        }
      }
    }
  }
  .factory-content {
    min-width: initial;
    // margin-left: 650px !important;
    .factory-top {
      font-size: 17px;
      font-weight: bold;
      margin-top: 15px;
      svg {
        width: 30px;
        height: 30px;
        color: $theme-color;
        margin: -5px 5px 0 0;
        vertical-align: middle;
      }
    }
  }
}
.calculate-content {
  height: calc(100% - 50px);
  padding-right: 20px;
  overflow-y: auto;
  &.borderd {
    border: 1px solid #ddd;
  }
}
.calculate-preview {
  padding: 10px 20px;
  h4 {
    color: #666;
  }
}
.calculate-logical {
  padding: 10px 20px;
  border-top: 1px solid #ddd;
  background-color: #f0f4f7;
  li {
    display: inline-block;
    font-size: 17px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    margin-right: 20px;
    color: #fff;
    background-color: #6a86cc;
    border-radius: 4px;
    cursor: pointer;
    &:last-child {
      float: right;
      background-color: #ff7272;
      margin-right: 0;
    }
  }
}
.calculate-canvas {
  height: calc(100% - 300px);
  padding: 20px;
  position: relative;
  .canvas-handler {
    height: 100px;
    color: #666;
    margin: 12px;
    background-color: #fafafa;
    border: 1px dashed #ddd;
    text-align: center;
    opacity: 0.6;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all 0.2s linear;
    svg {
      width: 30px;
      height: 30px;
      margin: 20px 0 10px 0;
      color: #ff7272;
    }
    &:hover {
      opacity: 1;
      background-color: #f0f4f7;
    }
  }
  .data-item {
    display: inline-block;
    margin: 20px;
    position: relative;
    cursor: pointer;
    &::before {
      content: '';
      background-color: #e6eeff;
      position: absolute;
      top: -6px;
      right: -6px;
      bottom: -6px;
      left: -6px;
      border-radius: 4px;
    }
    .item-content {
      font-weight: bold;
      padding: 10px 50px;
      background-color: #fff;
      border: 1px dashed #c0d5ff;
      position: relative;
      z-index: 2;
      border-radius: 4px;
    }
    .func-item {
      padding: 0;
      border: 0;
      background-color: #e6eeff;
    }
    .func-tag {
      min-width: 100px;
      padding: 3px 10px;
      border: 1px dashed #c0d5ff;
      background-color: #fff;
    }
    .func-tag,
    .func-num {
      display: inline-block;
      margin-left: 15px;
      text-align: center;
      .el-form-item {
        margin-bottom: 0;
        background-color: #fff;
      }
      .el-form-item__content {
        line-height: 30px;
      }
      .el-input {
        margin: 0;
        padding: 0;
      }
      .el-input__inner {
        text-align: center;
      }
      .el-input__suffix {
        top: 0;
        right: 5px;
      }
    }
    .func-name {
      display: inline-block;
      padding: 10px;
      color: #fff;
      background-color: #4d81ea;
      border-radius: 3px;
    }
    .el-form-item__error {
      margin-top: 10px;
    }
  }
  .logic-item {
    &::before {
      background-color: #fff0e9;
    }
    .item-content {
      width: 38px;
      height: 38px;
      text-align: center;
      line-height: 35px;
      padding: 0;
      color: #fff;
      background-color: #ff9c6c;
      border-color: #ff9c6c;
    }
  }
}
